projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d39517
)
core: Ensure we initialize checksum in FIFO case too
author
Colin Walters
<walters@verbum.org>
Mon, 5 Dec 2011 16:15:12 +0000
(11:15 -0500)
committer
Colin Walters
<walters@verbum.org>
Mon, 5 Dec 2011 16:15:12 +0000
(11:15 -0500)
src/libostree/ostree-core.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-core.c
b/src/libostree/ostree-core.c
index 97c67ebf8db8fe4e0bcee0ee16baec8441d90b3c..edbd5466464746e65b791baeec2548231450d09e 100644
(file)
--- a/
src/libostree/ostree-core.c
+++ b/
src/libostree/ostree-core.c
@@
-663,6
+663,8
@@
ostree_pack_file_for_input (GOutputStream *output,
}
else if (S_ISFIFO (mode))
{
+ if (out_checksum)
+ ret_checksum = g_checksum_new (G_CHECKSUM_SHA256);
}
else
g_assert_not_reached ();